Termination Proof Script

Consider the TRS R consisting of the rewrite rules
1:    sum(cons(s(n),x),cons(m,y))  → sum(cons(n,x),cons(s(m),y))
2:    sum(cons(0,x),y)  → sum(x,y)
3:    sum(nil,y)  → y
4:    weight(cons(n,cons(m,x)))  → weight(sum(cons(n,cons(m,x)),cons(0,x)))
5:    weight(cons(n,nil))  → n
There are 4 dependency pairs:
6:    SUM(cons(s(n),x),cons(m,y))  → SUM(cons(n,x),cons(s(m),y))
7:    SUM(cons(0,x),y)  → SUM(x,y)
8:    WEIGHT(cons(n,cons(m,x)))  → WEIGHT(sum(cons(n,cons(m,x)),cons(0,x)))
9:    WEIGHT(cons(n,cons(m,x)))  → SUM(cons(n,cons(m,x)),cons(0,x))
The approximated dependency graph contains 2 SCCs: {6,7} and {8}. Hence the TRS is terminating.
Tyrolean Termination Tool  (0.03 seconds)   ---  May 3, 2006